#include <vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <ctime>
 
using namespace std;
typedef long long ll;

int n, x[6], a, b, i, g3=0, g1=5;

int process(){
	for(i=0;i<6;i++)x[i]=0;
	cin>> n;n*=2;
	for(i=0;i<n;i++){
		cin >> b;
		x[b]++;
		if(x[b]==3)g3++;
		else if(x[b]==2)g1--;
	}
	return g3>0||g1>2;
}
int main(){
	freopen("in.txt","r",stdin);freopen("out.txt","w",stdout);
	
	if(process())cout<< "WIN";
	else cout<< "FAIL";
	
	return 0;
}
